$OpenBSD: patch-src_libevent-modified_evutil_rand_c,v 1.4 2015/06/11 14:23:09 sthen Exp $

Reinstate diff previously applied to libevent-modified.

From cab22b04c04c0b710acff69c8c2e9bbb0d94bde7 Mon Sep 17 00:00:00 2001
From: Frank Denis <github@pureftpd.org>
Date: Tue, 22 Oct 2013 13:05:32 -0700
Subject: [PATCH] Check for arc4random_addrandom() presence - Needed for
 OpenBSD-current.

--- src/libevent-modified/evutil_rand.c.orig	Thu Jun 11 15:09:08 2015
+++ src/libevent-modified/evutil_rand.c	Thu Jun 11 15:11:28 2015
@@ -176,7 +176,12 @@ evutil_secure_rng_get_bytes(void *buf, size_t n)
 void
 evutil_secure_rng_add_bytes(const char *buf, size_t n)
 {
+#ifdef HAVE_ARC4RANDOM_ADDRANDOM
 	arc4random_addrandom((unsigned char*)buf,
 	    n>(size_t)INT_MAX ? INT_MAX : (int)n);
+#else
+	(void) buf;
+	(void) n;
+#endif
 }
 
